package com.fin.quant.instra.mysql.model;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 资产/组合价格历史表
 */
public class TargetPrice {
    private Long id;

    /**
    * 类型：ASSET 或 PORTFOLIO
    */
    private String targetType;

    /**
    * 资产ID(asset.id) 或组合ID(portfolio.id)
    */
    private Long targetId;

    /**
    * 价格类型：收盘价, close 等
    */
    private String priceType;

    /**
    * 价格值
    */
    private BigDecimal price;

    /**
    * 价格对应时间
    */
    private Date priceDatetime;

    /**
    * 成交量，可选，资产有效
    */
    private Long volume;

    /**
    * 创建时间
    */
    private Date createdAt;

    /**
    * 更新时间
    */
    private Date updatedAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public String getPriceType() {
        return priceType;
    }

    public void setPriceType(String priceType) {
        this.priceType = priceType;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getPriceDatetime() {
        return priceDatetime;
    }

    public void setPriceDatetime(Date priceDatetime) {
        this.priceDatetime = priceDatetime;
    }

    public Long getVolume() {
        return volume;
    }

    public void setVolume(Long volume) {
        this.volume = volume;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
}